<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<div id="app">
  <ul>
<!--    <li v-for="(item, index) in listData">-->
    <li v-for="(item, index) of listData" v-bind:key="index">
      {{ index + 1 }}. {{ item }}
    </li>
  </ul>

  <hr>

  <ol>
    <li v-for="(value, key, index) of object" :key="key">
      {{ key }} - {{ value }} - {{ index }}
    </li>
  </ol>

  <hr>

  <ul>
    <li v-for="n in 10">{{ n }} </li>
  </ul>

  <hr>

  <dl>
    <template v-for="(item, key) of object">
      <dt>{{ key }}</dt>
      <dd>{{ item }}</dd>
    </template>
  </dl>

</div>
<script src="vue.js"></script>
<script>
  const app = new Vue({
    data: {
      listData: [
        { message: 'Foo' },
        { message: 'Bar' },
        { message: 'hello' },
        { message: 'vue' },
        { message: 'for' },
      ],
      object: {
        title: 'How to do lists in Vue',
        author: 'Jane Doe',
        publishedAt: '2016-04-10',
        color: 'red',
        name: '张三'
      }
    }
  }).$mount('#app')

</script>


</body>
</html>